import Home from '../views/Home.vue'

 const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta:{
      isShowTab:true,
      isShowNav:false,
      title:"首页",
      isAuth:true
    }
  },
  {
    path:"/category",
    name:"Category",
    component:()=>import("../views/Category.vue"),
    meta:{
      isShowTab:false,
      isShowNav:true,
      title:"分类"
    }
  },
  {
    path:"/cart",
    name:"Cart",
    component:()=>import("../views/Cart.vue"),
    meta:{
      isShowTab:true,
      isShowNav:true,
      title:"购物车"
    }
  },
  {
    path:"/mine",
    name:"Mine",
    component:()=>import("../views/Mine.vue"),
    meta:{
      isShowTab:true,
      isShowNav:true,
      title:"我的"
    }
  },
  {
    path:"/details",
    name:"Details",
    component:()=>import("../views/Details.vue"),
    meta:{
      isShowTab:true,
      isShowNav:true,
      title:"详情"
    }
  }
]

export default routes;
